Edit Task: SetResourceDetails ResourceCost
Description
The ResourceCost attribute under EditTask defines the resource cost for the specified resource for all the task's possibilities.
Parameters
Parameter | Description |
---|---|
ResourceName | A string of text of the resource that is being defined within the command. |
Cost | A positive double value representing the cost of the resource. |
Rate | Options are "PerAssignment" or "PerSecond". |
SetupApplies | A Boolean value that determines whether cost should apply to setup times. |
BreakdownApplies | A Boolean value that determines whether cost should apply to breakdown times. |
Examples
Set all cost settings for all possibilities containing ResA in TaskA.
PATCH api/task/TaskA
Body:
{
"SetResourceDetails" : {
"ResourceName" : "ResA",
"ResourceCost" : {
"Cost" : "2",
"Rate" : "PerAssignment",
"SetupApplies" : "True",
"BreakdownApplies" : "False" }
}
}